/*
 * M1 Informatique                                              MCPR * 
 * Joseph Boudou                                                TP 5 * 
 * n° 97053619                                            groupe 2.2 * 
 * Dernières modifications le                                        * 
 */

package ResK.test

import scala._

object Cotton {
  def main(args: Array[String]): Unit = {
    var nbProofs = 0
    var sumRatio = 0.f
    for (ln <- io.Source.stdin.getLines) {
      nbProofs += 1
      sumRatio += ResK.algorithms.CottonSplit.testCompression(ln, 300)
      println()
    }
    println("Average compression ratio: " + (sumRatio / nbProofs))
  }
}
